]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspaceAnimation: Allow long swipes in session
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Sun, 30 May 2021 15:02:12 +0000 (12:02 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Sun, 30 May 2021 15:02:12 +0000 (12:02 -0300)
As per design feedback, allow long swipes in the session too.

See https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3802#note_1124701

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1865>

js/ui/workspaceAnimation.js

index d240fe1562e887681403b310a96c2dea1149704a..0eec196bc09c7b3d4c17ca14ae2798c9804d9a2e 100644 (file)
@@ -287,6 +287,7 @@ var WorkspaceAnimationController = class {
             Clutter.Orientation.HORIZONTAL,
             Shell.ActionMode.NORMAL,
             { allowDrag: false });
+        swipeTracker.allowLongSwipes = true;
         swipeTracker.connect('begin', this._switchWorkspaceBegin.bind(this));
         swipeTracker.connect('update', this._switchWorkspaceUpdate.bind(this));
         swipeTracker.connect('end', this._switchWorkspaceEnd.bind(this));